<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>
    商品详情
  </title>
  <link href="/static/css/company.css" rel="stylesheet" media="all">
</head>
<body bgcolor="#5f9ea0">
<div class="wrap">
  <div class="login-wrap">
    <br>
    <a href="/index">返回商城</a>
    ■■■
    <a href='/cart'>查看购物车</a>
    <br><br>
    <tr th:each="g:${good}">
      <br>
      <form th:action="@{'/add/'+${g.getId()}}" method='post'>
        <img th:src="${g.getImg()}"/>
        <br>
        <menu>
          &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
          <li>
            商品名字：<span th:text="${g.getTitle()}"></span>
          </li>
          &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
          <li>
            商品价格：<span th:text="${g.getPrice()}"></span>
          </li>
          &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
          <li>
            设置购买数量：<input name="buyNumber">
            <input type="submit" value="加入购物车" onclick="alert('添加成功')">
          </li>
        </menu>
        <br><br>
      </form>
    </tr>

  </div>
</div>
</body>
</html>